<%--
	 +----------------------------------------------------------------------+
	 |																		|
	 | 支付宝 配置文件															|
	 |																		|		
	 +----------------------------------------------------------------------+
--%>
<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeadingKey="system.pay.zfb" />
<content tag="buttons">
	<probiz:iconBtn btnType="save" onclick="return fnDoAction(this, 'saveConfigAction');" />
	<probiz:iconBtn btnType="back" url="${ctxPath}/system/paymentMethod.html" />
</content>
<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span><fmt:message key="system.pay.zfb"/></span></li>
	</ul>
</div>

<div class="modify">
	<form class="mainForm" name="configForm" id="configForm" method="post" action="paymentMethod.html" onsubmit="return validateFormWithMsg(this);">
	<input type="hidden" name="paymentGatewayId" value="${paymentGateway.paymentGatewayId}"/>
		<table  width="100%" border="0" cellspacing="0" cellpadding="0" class="com_modi_table">
			<tr>
				<th colspan="2" class="title"><h4><fmt:message key="system.pay.shuo"/></h4></th>
			</tr>
			<tr>
				<th colspan="2" >
					<IMG alt="<fmt:message key="system.pay.kkk"/>" src="<c:url value="/pages/system/${paymentGateway.gatewayIcon}"/>"/>	
					<ul class="intro">
						<li><fmt:message key="system.pay.notice"/>
						<li><fmt:message key="system.pay.liuc"/>
					</ul>
				</th>
			</tr>
			<tr>
				<th colspan="2" class="title"><h4><fmt:message key="system.paymentGateway.configItem"/></h4></th>
			</tr>
			<tr>
				<th  class="label_width_1">
					<fmt:message key="system.pay.email"/>(<span class="red">*</span>):
				</th>
				<td>
					<input class="inputtxt" style="width: 350px" name="merchant" value="${paymentGateway.configData.merchant}" validConf="required,maxlength=100"/>
				</td>
			</tr>
			<tr>
				<th>
					<fmt:message key="system.pay.hzid"/>(<span class="red">*</span>):
				</th>
				<td>
					<input class="inputtxt" style="width: 350px" name="partnerId" value="${paymentGateway.configData.partnerId}"  validConf="required,maxlength=100"/>
				</td>
			</tr>
			<tr>
				<th><fmt:message key="system.pay.jym"/>(<span class="red">*</span>):</th>
				<td>
					<input class="inputtxt" style="width: 350px" name="key" value="${paymentGateway.configData.key}" validConf="required,maxlength=100"/>
				</td>
			</tr>
			<tr>
				<th><fmt:message key="system.pay.alipay.service"/>(<span class="red">*</span>):</th>
				<td>
					<select name="service" validConf="required">
						<option value="trade_create_by_buyer" 		  <c:if test="${paymentGateway.configData.service=='trade_create_by_buyer' or empty paymentGateway.configData.service}">selected</c:if> ><fmt:message key="system.pay.alipay.service.double"/></option>
						<option value="create_direct_pay_by_user" 	  <c:if test="${paymentGateway.configData.service=='create_direct_pay_by_user'}">selected</c:if>><fmt:message key="system.pay.alipay.service.directPay"/></option>
						<option value="create_partner_trade_by_buyer" <c:if test="${paymentGateway.configData.service=='create_partner_trade_by_buyer'}">selected</c:if>><fmt:message key="system.pay.alipay.service.partnerTrade"/></option>
					</select>
				</td>
			</tr>
			<tr>
				<th><span><fmt:message key="system.pay.zbz"/>:</span></th>
				<td><fmt:message key="system.pay.ren"/></td>
			</tr>
		  
		</table>
	</form>
</div>
<script>
$j(document).ready(function(){
	autoApplyValidate($j('#configForm')[0]);
});
</script>
